package com.demo.morning;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @ClassName Test1
 * @Description TODO
 * @Author tianqinglong
 * @Date 11:32 2022/7/8
 * @Version 1.0
 **/
public class Test1 {
    public static void main(String[] args) {
        Integer a[]={1,12,3,4};
        List<Integer> integers = Arrays.asList(a);
        for (Integer integer : integers) {
            System.out.println(integer);
        }

        Collections.reverse(integers);
        for (Integer integer : integers) {
            System.out.print(integer+"----");
        }
    }
}
